package cn.edu.ctbu.test.service;


import cn.edu.ctbu.test.domain.Course;
import cn.edu.ctbu.test.domain.Course;
import cn.edu.ctbu.test.domain.Score;
import cn.edu.ctbu.test.domain.Student;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CourseService {
    List<Course> findAll();

    List<Course> findByName(String courseName);


    Page<Course> findAll(Pageable pageable);

    Page<Course> findAll(Example<Course> course, Pageable pageable);


    Course insert(Course course);

    void delete(Long courseId);

    Course getById(Long courseId);

    Course update(Course course);

    List<Course> findByCourseName(String courseName);
    
}
